package demo.spring.boot.dev;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by lushun.chen on 2017/3/13.
 *
 * @author lushun.chen
 */
@Controller
@RequestMapping("/")
public class HelloWordController {

    @RequestMapping
    public String demo() {
        int i;
        i = 3;
        System.out.println(i);
        return "success";
    }

    @Bean
    public Integer demo2() {
        return 502;
    }
}
